const Session = window.sessionStorage

export function getSessionVal(key) {
    return JSON.parse(Session.getItem(key))
}

export function setSessionVal(key, value) {
    return Session.setItem(key, JSON.stringify(value))
}

export function removeSessionVal(key) {
    return Session.removeItem(key)
}

export function clearSessionVal() {
    return Session.clear()
}